package vn.edu.ptithcm.pim.service;

import java.util.List;

import vn.edu.ptithcm.pim.dao.ResourceCategoryDao;
import vn.edu.ptithcm.pim.dom.ResourceCategory;

@SuppressWarnings("rawtypes")
public class ResourceCategoryService {
	private ResourceCategoryDao resourceCategoryDao;

	public ResourceCategoryDao getResourceCategoryDao() {
		return resourceCategoryDao;
	}

	public void setResourceCategoryDao(ResourceCategoryDao resourceCategoryDao) {
		this.resourceCategoryDao = resourceCategoryDao;
	}

	public void save(ResourceCategory resourceCategory) {
		resourceCategoryDao.save(resourceCategory);
	}

	public void saveOrUpdate(ResourceCategory resourceCategory) {
		resourceCategoryDao.saveOrUpdate(resourceCategory);
	}

	public void lock(ResourceCategory resourceCategory) {
		resourceCategoryDao.lock(resourceCategory);
	}

	public void delete(ResourceCategory resourceCategory) {
		resourceCategoryDao.delete(resourceCategory);
	}

	public ResourceCategory merge(ResourceCategory resourceCategory) {
		return resourceCategoryDao.merge(resourceCategory);
	}

	public ResourceCategory findById(java.lang.Long id) {
		return resourceCategoryDao.findById(id);
	}

	public List findByExample(ResourceCategory resourceCategory) {
		return resourceCategoryDao.findByExample(resourceCategory);
	}

	public List<ResourceCategory> findByProject(Long taskid) {
		return resourceCategoryDao.findByProject(taskid);
	}

	public List getAll() {
		return resourceCategoryDao.getAll();
	}
}
